<template>
    <div>
        <div v-if="isMobile">
            移动设备访问受限，请使用计算机
        </div>
        <div v-else>
            <router-view></router-view>
        </div>
    </div>
</template>

<script setup>
import {onMounted, ref} from "vue";

const isMobile = ref(false);

onMounted(() => {
    isMobile.value = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
});

</script>